package top.hkyzf.study.leetcode.string;

import org.junit.Test;

/**
 * @author zhufeng
 * @version 1.0
 * @date 2020-12-19 10:56
 */
public class 设计Goal解析器_1678 {
    @Test
    public void testInterpret() {

        String commond = interpret("(al)G(al)()()G");
        System.out.println(commond);
    }

    private String interpret(String command) {
        return command.replaceAll("\\(\\)", "o").replaceAll("\\(al\\)", "al");
    }

}
